package com.softeem.servlet;

import com.softeem.service.PeijieService;
import com.softeem.service.impl.PeiJieServiceImpl;
import com.softeem.utils.BaseServlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet(value = "/ThreadLocalServlet")
public class ThreadLocalServlet extends BaseServlet {

    protected void peiTest(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

        PeijieService peijieService = new PeiJieServiceImpl() ;
        peijieService.save();

    }
}
